package com.cnyz.base;

import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import org.springframework.security.core.parameters.P;

import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;

@Data
@ApiModel(description = "接受参数")
public class BaseDto implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    private Long id;

    @ApiModelProperty(value = "评论")
    private String remark;

    @ApiModelProperty(value = "搜索条件")
    @JsonIgnore()
    private String searchValue;

    @ApiModelProperty(value = "请求参数")
    private Map<String,Object>Params;

    public Map<String, Object> getParams() {
        if (Params == null) {
            Params = new HashMap<>();
        }
        return Params;
    }

    public void setParams(Map<String, Object> params) {
        this.Params = params;
    }

}
